package com.umgsai.thread.thread25;

public class Service {
	private boolean isContinueRun = true;
	public void runMethod() {
		String anyString = new String();
		while (isContinueRun) {
//			synchronized (anyString) {
//				
//			}
		}
		System.out.println("stop...");
	}
	
	public void stopMethod() {
		isContinueRun = false;
	}
}
